import { defineStore } from 'pinia'

export const useSettingsStore = defineStore({
  id: 'settings',
  state: () => ({
    sidebar: {
      opened: true,
      title: 'PUMS管理系统',
      backgroundColor: '#424649',
      activeTextColor: '#ffd04b',
      textColor: '#fff',
      isfixed: false
    },
    navbar: {
      showBreadcrumb: true,
      showRefurbish: true,
    }
  }),
  getters: {},
  actions: {
    updateSidebarOpened() {
      this.sidebar.opened = !this.sidebar.opened
    }
  },
})
